<div id="head">	
	<div class="logo" style="padding-left: 15px"><a href="<?php echo url('default/index'); ?>"><img src="<?php echo $img_url; ?>logo.png" alt="" /></a></div>
	<div class="right">
		<div class="top">
			<div class="msg win left" style="width: 460px">
				<div class="left"></div>
				<div class="m" style="width: 440px"> <span class="yellow">Yesterday Winners</span>
					 <span id="ticker">
					 	<?php 
					 		if(!empty($site['winners'])){
					 			foreach ($site['winners'] as $winner){
					 				echo $winner['user_name'] . " won $" . $winner['won'] . ' ... ';
					 			}
					 		}
					 	 ?>
					</span>
				</div>
				<div class="right"></div>
				<div class="clear"></div>
			</div>
			<?php $siteName = substr($site['domain'], 0, strpos($site['domain'], '.')); ?>
			<div class="flag left"><a href="<?php echo 'http://' . $siteName . '.com'; ?>"><img src="<?php echo $img_url; ?>flag_1.png" alt="" width="47" height="35" /></a></div>
			<div class="flag left"><a href="<?php echo 'http://' . $siteName . '.co.uk'; ?>"><img src="<?php echo $img_url; ?>flag_2.png" alt="" width="47" height="35" /></a></div>
			<div class="msg login left">
				<div class="left"></div>
				<div class="m">
				<?php
					if (isset($user))
					{
				?>
					<span><a href="<?php echo url('user/logout'); ?>">Logout</a></span>
					|<span><a href="<?php echo url('offer/morecredit'); ?>">Get Credits</a></span></div>
				<?php
					}
					else
					{
				?>
					<span><a href="<?php echo url('user/login');?>">Login</a></span>
					|<span><a href="<?php echo url('user/register');?>">Register</a></span>
					|<span><a href="<?php echo url('help/index'); ?>">Help</a></span></div>
				<?php
					}
				?>
				<div class="right"></div>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
		</div>
		<div class="clear"></div>
		<div class="jackpot">
			<img src="<?php echo $img_url; ?>dollar.png" alt="" />
			<?php 
				if(isset($site['jackpot']))
				{
					$jackpot = strval($site['jackpot']);
					$len = strlen($jackpot);
					for($i = 0; $i < $len; $i++)
					{
						if($jackpot[$i] != '.')
						{
							echo '<img src="' . $img_url .  $jackpot[$i] . '.png" alt=""/>';
						}
						else
						{
							echo '<img src="' . $img_url . 'point.png" alt="" />';
						}
					}
				}
				else
				{
					echo '<img src="'.$img_url.'0.png" alt=""/>';
					echo '<img src="' . $img_url . 'point.png" alt="" />';
					echo '<img src="'.$img_url.'0.png" alt=""/>';
					echo '<img src="'.$img_url.'0.png" alt=""/>';
				}
			
			?>
		</div>
		<div class="clear"></div>
	</div>
	<div class="clear"></div>
</div>